package com.itfreer.gis.graphic;

import java.util.HashMap;
import java.util.Map;

/**
 * gis图形，郭军
 * @author gj
 *
 */
public abstract class GisGraphic {
	/**
	 * 坐标系统
	 */
	protected Integer coordinate;
	/**
	 * 标注
	 */
	protected String label;
	public Integer getCoordinate() {
		return coordinate;
	}
	public void setCoordinate(Integer coordinate) {
		this.coordinate = coordinate;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	/**
	 * 坐标系统id
	 */
	protected int srid;
	
	/**
	 * wkt格式坐标
	 */
	protected String geometry;
	
	/**
	 * 属性信息
	 */
	protected Map<String, Object> attribute=new HashMap<String, Object>();
	
	/**
	 * 图形类型
	 */
	protected GraphicType graphicType;
	
	public int getSrid() {
		return srid;
	}
	public void setSrid(int srid) {
		this.srid = srid;
	}
	public String getGeometry() {
		return geometry;
	}
	public abstract void setGeometry();
	
	public Map<String, Object> getAttribute() {
		return attribute;
	}
	public void setAttribute(Map<String, Object> attribute) {
		this.attribute = attribute;
	}
	public void setGraphicType(GraphicType graphicType) {
		this.graphicType = graphicType;
	}
	public GraphicType getGraphicType() {
		return this.graphicType;
	}
	
	/**
	 * 项目主键字段（解决在arcgis服务中，部分服务使用了自定义的主键问题）
	 */
	public String keyField="OBJECTID";

	public String getKeyField() {
		return keyField;
	}

	public void setKeyField(String keyField) {
		this.keyField = keyField;
	}
}
